package com.ming.mingbase.base.dao.impl;

import javax.annotation.Resource;

import org.apache.ibatis.session.SqlSession;
import org.springframework.stereotype.Repository;

import com.ming.mingbase.base.dao.UserDao;
import com.ming.mingbase.base.exeption.BaseException;
import com.ming.mingbase.base.vo.User;
@Repository("userDao")
public class UserDaoImpl implements UserDao {
	@Resource(name="sqlSession")
	private SqlSession sqlSession;
	private UserDao userDao=sqlSession.getMapper(UserDao.class);
	public User getUserById(String id) throws BaseException {
		return userDao.getUserById("1");
	}

}
